
.photo-gallery li {
    transition: all 0.3s;
    cursor:pointer;
}
.photo-gallery.hover li {
    border:5px solid #fff;
    box-shadow:0 0 4px #000;
}
/**
 * Gallery with more than 3 images
 */
.photo-gallery.hover.count-n li:nth-child(1) {
    transform:rotate(-9deg);
    -webkit-transform:rotate(-9deg);
    -ms-transform:rotate(-9deg);
    margin:-9px 0 0 -9px;
}
.photo-gallery.hover.count-n li:nth-child(2) {
    transform:rotate(-6deg);
    -webkit-transform:rotate(-6deg);
    -ms-transform:rotate(-6deg);
    margin:-6px 0 0 -6px;
}
.photo-gallery.hover.count-n li:nth-child(3) {
    transform:rotate(-3deg);
    -webkit-transform:rotate(-3deg);
    -ms-transform:rotate(-3deg);
    margin:-3px 0 0 -3px;
}
/**
 * Gallery with 3 images
 */
.photo-gallery.hover.count-3 li:nth-child(1) {
    transform:rotate(-6deg);
    -webkit-transform:rotate(-6deg);
    -ms-transform:rotate(-6deg);
    margin:-6px 0 0 -6px;
}
.photo-gallery.hover.count-3 li:nth-child(2) {
    transform:rotate(-3deg);
    -webkit-transform:rotate(-3deg);
    -ms-transform:rotate(-3deg);
    margin:-3px 0 0 -3px;
}
/**
 * Gallery with 2 images
 */
.photo-gallery.hover.count-2 li:nth-child(1) {
    transform:rotate(-3deg);
    -webkit-transform:rotate(-3deg);
    -ms-transform:rotate(-3deg);
    margin:-3px 0 0 -3px;
}

.photo-gallery li {
    position:absolute;
    left:0;
    top: 0;
    overflow:hidden
}


/**
 * LIGHTBOX
 */

.photo-gallery-overlay {
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:#555;
    opacity:0.9;
    z-index: 9998;
    display:none
}

.photo-gallery-overlay a {
    position:absolute;
    top:0;
    right:0;
    width:20;
    height:20;
    padding:10px 10px 15px 15px;
    border-radius:0 0 0 20px;
    background:rgba(0,0,0,0.5);
    text-decoration:none;
    color:white;
    font-size:30px;
    line-height:20px;
    box-shadow:-1px 1px 3px #333
}

.photo-gallery-overlay a:hover {
    background:#C30200;
    color:white;
}

.photo-gallery-window {
    position:fixed;
    z-index: 9999;
    left: 50%;
    top:  50%;
    background:white;
    box-shadow: 0 0 7px #000;
    display:none;
    overflow:hidden
}
.photo-gallery-control {
    position:fixed;
    z-index:9999;
    left:50%;
    top:50%;
    width:100px;
    color:white;
    text-shadow:0 0 3px #555;
    font-size:60px;
    text-align:center;
    cursor:pointer;
    display:none;
    user-select:none;
    -webkit-user-select: none;  
    -moz-user-select: none;    
    -ms-user-select: none; 
}

.photo-gallery-window ul {
    list-style: none
}
.photo-gallery-window li {
    float:left;
    text-align: center
}
.photo-gallery-window.start .prev,
.photo-gallery-window.end .next{display:none;}